﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Bu
{
	/// <summary>
	/// Interaction logic for IndexCard.xaml
	/// </summary>
	public partial class IndexCard
	{
        public bool Selected { get; set; }
        public Person PersonData;

		public IndexCard()
		{
			this.InitializeComponent();
		}

        public void Select()
        {
            if (((WrapPanel)this.Parent).Children[0].GetHashCode() != this.GetHashCode())
            {
                this.bdrBorder.Margin = new Thickness(0, -5, 0, 0);
            }
            else
            {
                this.bdrBorder.Margin = new Thickness(0, 5, 0, 0);
            }
            this.bdrBorder.Width = 150d;
            this.bdrBorder.Height = 80d;
            this.bdrBorder.BorderThickness = new Thickness(2, 2, .5, .5);
            this.Selected = true;

            this.Margin = new Thickness(0, -5, 0, 0);
            this.Height = 80d;
            this.Width = 160d;
            
        }
	}
}